﻿<Window x:Class="PurchaseWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    SizeToContent="WidthAndHeight" WindowStyle="None" AllowsTransparency="True" Icon="/MyPOS;component/Images/POSIcon.ico"
    xmlns:local="clr-namespace:MyPOS" WindowStartupLocation="CenterScreen" Background="Transparent">
    <Border Background="White" BorderBrush="Navy" BorderThickness="2" CornerRadius="10">
        <Grid Margin="10" Background="{StaticResource WindowBackground}">
            <Grid.RowDefinitions>
                <RowDefinition Height="30"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="Auto"/>
            </Grid.ColumnDefinitions>
            <TextBlock Margin="20,2" FontSize="16" FontWeight="SemiBold" Foreground="{StaticResource TextLabelColor}">
            <Run Text="Point of Sale (" />
            <Run Text="Your daily business partner....." FontSize="10" FontStyle="Italic"/>
            <Run Text=")" />
            <Run Text=" :: "/>
            <Run Name="ModuleNameRun"/>
            </TextBlock>
            <Button Grid.Column="2" Style="{DynamicResource CloseButtonStyle}" Width="11.195" Content="Button" x:Name="CloseButton" Cursor="Hand" HorizontalAlignment="Right" Margin="0,5.583,7.468,0" VerticalAlignment="Top" Height="12.77"/>
            <Button Grid.Column="2" Style="{DynamicResource MinimizeButtonStyle}" Width="12.402" Content="Button" x:Name="MinimizeButton" Cursor="Hand" HorizontalAlignment="Right" Margin="0,4.733,24.606,0" VerticalAlignment="Top" Height="13.537"/>
            <Path Data="M18,115 L616,115" Fill="#FFF4F4F5" Height="1" Margin="5" Width="800" Stretch="Fill" Stroke="White" Grid.Row="1" Grid.ColumnSpan="2"/>
            <Grid Grid.Row="2" Name="MainStack" Margin="10">
                <Grid.RowDefinitions>
                    <RowDefinition Height="28"/>
                    <RowDefinition Height="28"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="300"/>
                    <RowDefinition Height="120"/>
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"/>
                    <ColumnDefinition Width="500"/>
                    <ColumnDefinition Width="Auto"/>
                    <ColumnDefinition Width="Auto"/>
                </Grid.ColumnDefinitions>
                <TextBlock Name="NoTextBlock" Text="Invoice No.:" Style="{StaticResource TextBlockStyle}"/>
                <TextBox  Grid.Column="1" Margin="2"/>
                <TextBlock Text="Vendor Name:" Grid.Row="1" Style="{StaticResource TextBlockStyle}"/>
                <ComboBox Grid.Column="1" Grid.Row="1" Margin="2"/>
                <TextBlock Text="Date:" Grid.Column="2" Style="{StaticResource TextBlockStyle}"/>
                <DatePicker Grid.Column="3" Height="28" Name="DatePicker1" />
                <DataGrid AutoGenerateColumns="False" Grid.ColumnSpan="4" Grid.Row="3" Margin="5" Name="DataGrid1" Height="400">
                    <DataGrid.Columns>
                        <DataGridTextColumn Header="Name" Width="200"/>
                        <DataGridTextColumn Header="Description" Width="200"/>
                        <DataGridTextColumn Header="Qty" Width="60"/>
                        <DataGridComboBoxColumn Header="UOM" Width="60"/>
                        <DataGridTextColumn Header="Rate" Width="80"/>
                        <DataGridTextColumn Header="Amount" Width="120"/>
                    </DataGrid.Columns>
                </DataGrid>
                <Grid Grid.Row="4" Grid.ColumnSpan="4">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="435"/>
                        <ColumnDefinition Width="140"/>
                        <ColumnDefinition Width="150"/>
                    </Grid.ColumnDefinitions>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="28"/>
                        <RowDefinition Height="28"/>
                        <RowDefinition Height="28"/>
                        <RowDefinition Height="28"/>
                    </Grid.RowDefinitions>
                    <StackPanel Orientation="Horizontal" Grid.RowSpan="4" Name="RemarksStackPanel">
                        <TextBlock Text="Remarks :" Style="{StaticResource TextBlockStyle}"/>
                        <TextBox Height="105" Width="370" Margin="2" AcceptsReturn="True" TextWrapping="Wrap"/>
                    </StackPanel>
                    <DataGrid AutoGenerateColumns="False" Margin="5" Name="TaxDiscountDataGrid" Visibility="Collapsed"  Grid.RowSpan="3">
                        <DataGrid.Columns>
                            <DataGridTextColumn Header="Tax/Discount" Width="220"/>
                            <DataGridTextColumn Header="Rate" Width="80"/>
                            <DataGridTextColumn Header="Amount" Width="120"/>
                        </DataGrid.Columns>
                    </DataGrid>
                    <StackPanel Orientation="Horizontal" Grid.Row="3" HorizontalAlignment="Right" Visibility="Collapsed" Name="TaxDiscountStackPanel">
                        <Button Width="25" Margin="2" Name="OKButton" ToolTip="Save" Cursor="Hand">
                            <Button.Template>
                                <ControlTemplate>
                                    <Image Source="/MyPOS;component/Images/clean.png"/>
                                </ControlTemplate>
                            </Button.Template>
                        </Button>
                        <Button Width="25" Margin="2" Name="CancelButton" ToolTip="Cancel" Cursor="Hand">
                            <Button.Template>
                                <ControlTemplate>
                                    <Image Source="/MyPOS;component/Images/desktop_enhancements.png"/>
                                </ControlTemplate>
                            </Button.Template>
                        </Button>
                    </StackPanel>
                    <TextBlock Text="Sub total :" Name="SubtotalTextBlock" HorizontalAlignment="Right" Grid.Column="1" Style="{StaticResource TextBlockStyle}"  Visibility="Collapsed"/>
                    <TextBox Grid.Column="2" Margin="2" Name="SubtotalTextBox"  Visibility="Collapsed"/>
                    <TextBlock Text="Other charges :" HorizontalAlignment="Right" TextDecorations="Underline" Cursor="Hand" Name="OtherChargesTextBlock" Grid.Column="1" Grid.Row="1" Style="{StaticResource TextBlockStyle}"  Visibility="Collapsed"/>
                    <TextBox Grid.Column="2" Margin="2" Grid.Row="1" Name="OtherchargesTextBox" Visibility="Collapsed"/>
                    <TextBlock Text="Net amount :" HorizontalAlignment="Right" Grid.Column="1" Grid.Row="2" Style="{StaticResource TextBlockStyle}"/>
                    <TextBox Grid.Column="2" Margin="2" Grid.Row="2" Name="NetamountTextBox"/>
                    <TextBlock Text="Paid amount :" Name="PaidamountTextBlock" HorizontalAlignment="Right" Grid.Column="1" Grid.Row="3" Style="{StaticResource TextBlockStyle}" Visibility="Collapsed"/>
                    <TextBox Grid.Column="2" Margin="2" Grid.Row="3" Name="PaidamountTextBox" Visibility="Collapsed"/>
                </Grid>
            </Grid>
            <local:SidePanel Grid.Row="2" Grid.Column="1" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.ColumnSpan="2"/>
        </Grid>
    </Border>
</Window>
